package events
{
	import flash.events.Event;

	public class DaTinEvent extends Event
	{
		public static const ADD_UPLOAD_PIC:String =  "add_upload_pic";
		public static const CHANGE_ITEMS_COUNT:String = "change_items_count";
		public static const MOVE_UPLOAD_ITEM:String = "move_upload_item";
		public static const REMOVE_ITEM:String = "remove_item";
		
		private var _content:Object = {};
		private var _eb:EventBridge = EventBridge.getInstance();
		
		public function DaTinEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		public function dispatch():void{
		    _eb.dispatchEvent(this);
		}
		
		public function set data(value:Object):void{
		    _content = value;
		}
		
		public function get data():Object{
		    return _content;
		}
		
	}
}